﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Subscribe.ascx.cs" Inherits="UserControl_Subscribe" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<script type="text/javascript" language="javascript">
    function ProcessKeyPress() {
        var KeyID = (window.event) ? event.keyCode : e.keyCode;
        if (KeyID == 13) {
            document.getElementById(btnClientId).click();
        }
    }
</script>
<div class="subs_frm">
    <div class="subsc_body">
        <div class="frm_heading">
            <h2>Get the Best Deals in Minneapolis - St. Paul</h2>
        </div>
        <div class="content">
              <div class="row">
            <div class="sbsc_text" style="margin-top:10px; margin-bottom:10px">Save money on the coolest places in town. We'll email you every time there's a new deal.<br /> Are you in?</div>
            </div>
<%--            <div class="row">
                <div class="lab">
                    Select City:</div>
                <div class="inp">
                    <asp:DropDownList ID="ddlCity" runat="server">
                    </asp:DropDownList>
                </div>
                <div class="error">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Select City"
                        ControlToValidate="ddlCity" InitialValue="0" Display="Dynamic" ValidationGroup="a"></asp:RequiredFieldValidator></div>
            </div>--%>
            <div class="row" style="margin-top:10px">
                <%--<div class="lab">
                    Email:</div>--%>
                <div class="inp" style="vertical-align:middle; float:left">
                    <asp:TextBox ID="txtEmail" runat="server" Width="200px" Height="25px" Font-Names="Arial"></asp:TextBox>
                </div>
                <div style="float:left; width:60%">
                     <asp:Button ID="btnSubmit" runat="server"
                                            Text="Subscribe" class="genericButton" OnClick="btnSubmit_Click" ValidationGroup="a"
                                            Font-Size="11pt" Font-Names="Arial" />
                </div>
                <div class="error" style="float:left; width:100%; font-family:Arial; font-size:10pt; margin-top:5px;">
                    <asp:RegularExpressionValidator ID="regexpName" runat="server" ErrorMessage="Please enter a valid email"
                        ControlToValidate="txtEmail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="a" Display="Dynamic"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter a valid email"
                        ControlToValidate="txtEmail" Display="Dynamic" ValidationGroup="a"></asp:RequiredFieldValidator></div>
            </div>
          <%--  <div class="row_01">
                <div>
                    <asp:ImageButton ID="btnSubmit" runat="server" ValidationGroup="a" OnClick="btnSubmit_Click"
                        ImageUrl="../images/subs_but.png" />
                </div>
            </div>--%>
            <div class="row">
            <div class="sbsc_link" style="width:100%;margin-top:15px;">
                <asp:HyperLink ID="lnkBtnNoThanks" runat="server" Text="No thanks, I'm already subscribed" NavigateUrl="~/default.aspx"></asp:HyperLink>
            </div>
            </div>
            <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtEmail"
                WatermarkText="Email me Daily Deals" WatermarkCssClass="watermarked">
            </cc1:TextBoxWatermarkExtender>
        </div>
    </div>
</div>
